SMAHB05200_[자동판정]결과상담리스트.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>[자동판정]결과상담 리스트</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <rsltcnstlist>
  20. <item>
  21. <rsltcnststatflag/>
  22. <rsltcnstflag/>
  23. <rsltcnstrsrvdd/>
  24. <hngnm/>
  25. <pid/>
  26. <sex/>
  27. <age/>
  28. <rsltcnstdrid/>
  29. <pkgnm/>
  30. <addtestnm/>
  31. <hopedd/>
  32. <cmpynm/>
  33. <judgdrid/>
  34. <judgdd/>
  35. <diagnm/>
  36. <sickcd/>
  37. <cnstcnts/>
  38. <prnttims/>
  39. <prntrid/>
  40. </item>
  41. </rsltcnstlist>
  42. </main>
  43. <init>
  44. <baseinfo>
  45. <statlst/>
  46. <hedetlflaglst/>
  47. <drlst>
  48. <itemdr/>
  49. </drlst>
  50. <rsltcnstflaglst/>
  51. </baseinfo>
  52. <A0010list>
  53. <A0010>
  54. <cdnm/>
  55. <cdid/>
  56. </A0010>
  57. </A0010list>
  58. </init>
  59. <send_05200>
  60. <srchbasedd/>
  61. <srchhealexamflag/>
  62. <srchcond/>
  63. <srchrsltcnststatflag/>
  64. <srchdrid/>
  65. <srchhealexamdetlflag/>
  66. <srchinstcd/>
  67. <srchpid/>
  68. <srchhngnm/>
  69. </send_05200>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  77. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  78. <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. fDefaultSubmit();
  82. fDefaultSet(); //기본 데이터를 셋팅한다.
  83. ]]>
  84. </script>
  85. <submission id="TRZBC00101"/>
  86. <submission id="TRAHB05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05200" resultref="/root/main/rsltcnstlist"/>
  87. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05200" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  88. </model>
  89. <script type="javascript">
  90. <![CDATA[
  91. function fDefaultSubmit() {
  92. model.makeValue("/root/send_05200/srchhealexamflag" , 'C');
  93. model.makeValue("/root/send_05200/srchcond", "J");
  94. submit("TRAHB01504");
  95. addComboItem( "cmb_drid" , "전체", "");
  96. zbcfGetCodeList( new Array("A0069","A0107", "A0123")
  97. , new Array( "/root/init/baseinfo/hedetlflaglst" //건진구분
  98. , "/root/init/baseinfo/statlst" //상태
  99. , "/root/init/baseinfo/rsltcnstflaglst" )//상담방법
  100. );
  101. submit("TRZBC00101");
  102. }
  103. function fDefaultSet() {
  104. //유저에 따라 판정의셋팅
  105. var sUserInfosS = getUserInfos();
  106. sUserInfosS = sUserInfosS + "|";
  107. var UserInfosS_Array = sUserInfosS.split("|");
  108. var cnt_userid = UserInfosS_Array[0]; //사용자번호
  109. var drnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + cnt_userid +"']/drnm");
  110. if(drnm != ""){
  111. // 의사이면 당일
  112. model.setValue("/root/send_05200/srchdrid",cnt_userid); //의사 아이디 셋팅
  113. model.setValue("/root/send_05200/srchbasedd",getCurrentDate()); //금일로 셋팅
  114. //건진조회기본값 셋팅
  115. model.setValue("/root/send_05200/srchrsltcnststatflag",'0'); //대기
  116. }else{
  117. // 의사가 아니면 당일
  118. model.setValue("/root/send_05200/srchbasedd",getCurrentDate()); //금일로 셋팅
  119. model.setValue("/root/send_05200/srchdrid",""); //의사 아이디 셋팅 료
  120. //건진조회기본값 셋팅
  121. model.setValue("/root/send_05200/srchrsltcnststatflag",'0'); //판정중, 판정완료
  122. }
  123. //건진종류셋팅
  124. model.setValue("/root/send_05200/srchinstcd",UserInfosS_Array[6]);
  125. model.setValue("/root/send_05200/srchhealexamflag",'C');
  126. model.setValue("/root/send_05200/srchhealexamdetlflag",'C01');
  127. fGetRsltCntsPatList();
  128. model.refresh();
  129. }
  130. function fGetRsltCntsPatList(){
  131. submit("TRAHB05201",false);
  132. }
  133. /*
  134. function fInit(bDetl){
  135. model.resetInstanceNode("/root/main/judgdetl/judginfo/item");
  136. var cur_date = getCurrentDate();
  137. // model.setValue(ipt_judgdd.attribute("ref") , cur_date);
  138. if( bDetl) {
  139. return ;
  140. }
  141. model.removeNodeset(grd_judgpatlst.nodeset);
  142. model.refresh();
  143. }
  144. function fSrchInit(){
  145. // cmb_srchhealexamdetlflag.refresh();
  146. //cmb_srchhealexamdetlflag.select(0);
  147. // cmb_srchhealexamdetlflag2.refresh();
  148. // cmb_srchhealexamdetlflag2.select(0);
  149. var cur_date = getCurrentDate();
  150. model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
  151. // model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
  152. }
  153. function fGetRsltCntsPatList(){
  154. openLoadingBar("판정 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  155. model.removeNodeset(grd_judgpatlst.nodeset);
  156. //model.resetInstanceNode("/root/send");
  157. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  158. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  159. // model.setValue("/root/send/judgdrid" , model.getValue("/root/init/send/judgdrid") );
  160. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  161. model.setValue("/root/send/srchhealexamflag", fGetHealExamFlag());
  162. submit("TRAHB05201");
  163. closeLoadingBar() ;//처리중 화면을 close한다.
  164. }
  165. function fGetBasicCdList(){
  166. if(!checkOpener() ){
  167. model.toggle("case_pat");
  168. }
  169. // btn_patlst.selected= true;
  170. if( m_vHealexamflag == "" ) {
  171. m_vHealexamflag = fGetHealExamFlag();
  172. }
  173. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  174. zbcfGetCodeList( new Array("A0069", "A0066","A0110","A0106", "A0107", "A0123")
  175. , new Array( "/root/init/baseinfo/hedetlflaglst"
  176. , "/root/init/baseinfo/rslttypelst"
  177. , "/root/init/baseinfo/plceflag"
  178. , "/root/init/baseinfo/inqrflag"
  179. , "/root/init/baseinfo/statlst"
  180. , "/root/init/baseinfo/rsltcnstflaglst" ) );
  181. submit("TRZBC00101");
  182. // m_vHealexamdetlflag = "C01";
  183. //판정의조회
  184. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  185. model.setValue("/root/init/send/srchhealexamdetlflag" ,"C01");
  186. model.makeNode("/root/send/srchcond" );
  187. model.setValue("/root/send/srchcond", "J");
  188. submit("TRAHB01504");
  189. closeLoadingBar() ;//처리중 화면을 close한다.
  190. }
  191. */
  192. ]]>
  193. </script>
  194. </xhtml:head>
  195. <xhtml:body guideline="2,759;1,1188;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  196. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  197. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:205px; height:13px; ">[자동판정]결과상담 리스트</caption>
  198. </group>
  199. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  200. <group id="group4" style="left:0px; top:15px; width:1179px; height:65px; vertical-align:top; ">
  201. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  202. <caption id="caption10" class="search_name" style="left:211px; top:11px; width:86px; height:17px; ">상담일자 :</caption>
  203. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
  204. <caption>조회</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. // submit("TRAHR00801");
  208. fGetRsltCntsPatList();
  209. model.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <line id="line1" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  214. <input id="ipt_srchbasedd" ref="/root/send_05200/srchbasedd" class="input_s_essential" inputtype="date" style="left:320px; top:11px; width:100px; height:19px; "/>
  215. <caption id="caption38" class="search_name" style="left:211px; top:35px; width:80px; height:17px; ">상담의 :</caption>
  216. <select1 id="cmb_drid" ref="/root/send_05200/srchdrid" class="combo_s_essential" appearance="minimal" style="left:301px; top:35px; width:139px; height:19px; ">
  217. <choices>
  218. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  219. <label ref="drnm"/>
  220. <value ref="drid"/>
  221. </itemset>
  222. </choices>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fGetRsltCntsPatList();
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </select1>
  230. <button id="cmb_pre_day" class="icon_pre_month" style="left:300px; top:12px; width:16px; height:16px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="onclick">
  233. <![CDATA[
  234. var basedd = model.getValue("/root/send_05200/srchbasedd");
  235. model.setValue("/root/send_05200/srchbasedd",((basedd).toDate().getAddDate(-1,'D')).getDateFormat('YYYYMMDD')); //하루전으로 셋팅
  236. ipt_srchbasedd.refresh();
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="button2" class="icon_next_month" style="left:425px; top:12px; width:16px; height:16px; ">
  241. <caption/>
  242. <script type="javascript" ev:event="onclick">
  243. <![CDATA[
  244. var basedd = model.getValue("/root/send_05200/srchbasedd");
  245. model.setValue("/root/send_05200/srchbasedd",((basedd).toDate().getAddDate(1,'D')).getDateFormat('YYYYMMDD')); //하루전으로 셋팅
  246. ipt_srchbasedd.refresh();
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="button1" class="btn5_letter8" style="left:470px; top:35px; width:108px; height:19px; ">
  251. <caption>결과 상담 리스트</caption>
  252. <script type="javascript" ev:event="onclick">
  253. <![CDATA[
  254. model.setValue("/root/send_05200/srchrsltcnststatflag",'0 1'); //판정중, 판정완료
  255. cmb_srchrsltcnststatflag.refresh();
  256. fGetRsltCntsPatList();
  257. model.refresh();
  258. ]]>
  259. </script>
  260. </button>
  261. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send_05200/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:10px; width:90px; height:19px; ">
  262. <choices>
  263. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
  264. <label ref="cdnm"/>
  265. <value ref="cdid"/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. <caption id="caption34" class="search_name" style="left:10px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  270. <caption id="caption36" class="search_name" style="left:465px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  271. <button id="btn_srchpat" class="icon_search" style="left:640px; top:10px; width:16px; height:16px; ">
  272. <caption/>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send_05200/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  276. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetRsltCntsPatList();
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </button>
  281. <input id="ipt_pid" ref="/root/send_05200/srchpid" class="input_default" style="left:555px; top:10px; width:80px; height:19px; ">
  282. <script type="javascript" ev:event="onkeyup">
  283. <![CDATA[
  284. fGetRsltCntsPatList();
  285. model.refresh();
  286. ]]>
  287. </script>
  288. </input>
  289. <input id="ipt_pnm" ref="/root/send_05200/srchhngnm" class="input_default" style="left:660px; top:10px; width:69px; height:19px; "/>
  290. <select1 id="cmb_srchrsltcnststatflag" ref="/root/send_05200/srchrsltcnststatflag" appearance="minimal" style="left:100px; top:35px; width:90px; height:19px; ">
  291. <choices>
  292. <item>
  293. <label>전체</label>
  294. <value>0 1</value>
  295. </item>
  296. <item>
  297. <label>대기</label>
  298. <value>0</value>
  299. </item>
  300. <item>
  301. <label>완료</label>
  302. <value>1</value>
  303. </item>
  304. </choices>
  305. </select1>
  306. <caption id="caption1" class="search_name" style="left:10px; top:35px; width:86px; height:17px; ">상담구분 :</caption>
  307. </group>
  308. <datagrid id="grd_rsltcnstlist" nodeset="/root/main/rsltcnstlist/item" caption="구분^상담방법^상담일시^성명^등록번호^성별^나이^상담의^패키지명^추가검사^검진일^개인/단체^판정의^판정일^진단명^질환 설명서 코드^추천검진^판정지출려횟수^최종출력자" colsep="^" colwidth="59, 72, 202, 100, 64, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 122, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:110px; width:1175px; height:620px; ">
  309. <col disabled="true" ref="rsltcnststatflag" type="combo">
  310. <choices>
  311. <item>
  312. <label>대기</label>
  313. <value>0</value>
  314. </item>
  315. <item>
  316. <label>완료</label>
  317. <value>1</value>
  318. </item>
  319. <item>
  320. <label>취소</label>
  321. <value>2</value>
  322. </item>
  323. </choices>
  324. </col>
  325. <col editmode="search" ref="rsltcnstflag" type="combo">
  326. <choices>
  327. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/A0123">
  328. <label ref="cdnm"/>
  329. <value ref="cdid"/>
  330. </itemset>
  331. </choices>
  332. </col>
  333. <col ref="rsltcnstrsrvdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  334. <col ref="hngnm"/>
  335. <col ref="pid"/>
  336. <col ref="sex"/>
  337. <col ref="age"/>
  338. <col disabled="false" ref="rsltcnstdrid" type="combo">
  339. <choices>
  340. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  341. <label ref="drnm"/>
  342. <value ref="drid"/>
  343. </itemset>
  344. </choices>
  345. </col>
  346. <col ref="pkgnm"/>
  347. <col ref="addtestnm"/>
  348. <col ref="hopedd" format="yyyy-mm-dd"/>
  349. <col ref="cmpynm"/>
  350. <col disabled="false" ref="judgdrid" type="combo">
  351. <choices>
  352. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  353. <label ref="drnm"/>
  354. <value ref="drid"/>
  355. </itemset>
  356. </choices>
  357. </col>
  358. <col ref="judgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  359. <col ref="diagnm"/>
  360. <col ref="sickcd"/>
  361. <col ref="cnstcnts"/>
  362. <col ref="prnttims"/>
  363. <col ref="prntrid"/>
  364. <choices>
  365. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/A0123">
  366. <label ref="cdnm"/>
  367. <value ref="cdid"/>
  368. </itemset>
  369. </choices>
  370. <script type="javascript" ev:event="ondblclick">
  371. <![CDATA[
  372. open("SMAHB05300", "2", "", "", "popup", grd_rsltcnstlist.attribute("nodeset") + "[" + grd_rsltcnstlist.row + "]", "/root/temp" ) ;
  373. ]]>
  374. </script>
  375. </datagrid>
  376. <caption id="caption5" class="tit_2" style="left:5px; top:90px; width:151px; height:13px; ">결과상담 리스트</caption>
  377. <line id="line6" class="line_1" style="x1:5px; y1:105px; x2:1180px; y2:105px; "/>
  378. <button id="button5" class="btn2_letter2" disabled="false" style="left:1137px; top:85px; width:42px; height:19px; ">
  379. <caption>문진</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. if(grd_judgpatlst.row > 0 ){
  383. open("SPAHB04900", "1", "", "", "popup", grd_judgpatlst.attribute("nodeset") + "[" + grd_judgpatlst.row + "]" , "root/temp");
  384. }else{
  385. messageBox("환자를 선택하시고 문진 버튼을 누르세요","I999");
  386. }
  387. ]]>
  388. </script>
  389. </button>
  390. </group>
  391. </xhtml:body>
  392. </xhtml:html>